﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJSHWebApi.DBModel
{

    /// <summary>
    /// 烘箱
    /// </summary>
    [Table("Oven_Entity")]
    public class Oven_Entity: BaseDbmodel
    {
        public string Ip { get; set; }

        public int id { get; set; }

        /// <summary>
        ///取料归属区域
        /// </summary>
        public int PickAreaType { get; set; }
        /// <summary>
        ///放料归属区域
        /// </summary>
        public int PutAreaType { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public int Deviceid { get; set; }

        /// <summary>
        /// 动作站点
        /// </summary>
        public int Station { get; set; }
        /// <summary>
        /// 前置站点
        /// </summary>
        public int PreStation { get; set; }

        /// <summary>
        /// 后置站点
        /// </summary>
        public int BackStation { get; set; }
        public bool IsEnable { get; set; }
        public int Flow { get; set; }

        /// <summary>
        /// 上满料任务
        /// </summary>
        public int Unwind_Full { get; set; }
        /// <summary>
        /// 上满料任务待烘烤
        /// </summary>
        public int Unwind_FullTobeBaked { get; set; }
        /// <summary>
        /// 卸满料任务
        /// </summary>
        public int Unloading_Full { get; set; }
        /// <summary>
        /// 上空料任务
        /// </summary>
        public int Unwind_Null { get; set; }
        /// <summary>
        /// 卸空料任务
        /// </summary>
        public int Unloading_Null { get; set; }
        public string Remark { get; set; }

        public bool state1 { get; set; }
        public bool state2 { get; set; }
        public bool state3 { get; set; }
        public bool state4 { get; set; }
        public bool state5 { get; set; }
        public bool state6 { get; set; }
        public bool state7 { get; set; }
        public bool state8 { get; set; }
        public bool state9 { get; set; }
        public bool state10 { get; set; }
        public bool state11 { get; set; }
        public bool state12 { get; set; }
        public bool state13 { get; set; }
        public bool state14 { get; set; }
        public bool state15 { get; set; }
        public bool state16 { get; set; }
        public bool state17 { get; set; }
        public bool state18 { get; set; }
        public bool state19 { get; set; }
        public bool state20 { get; set; }
        public bool state21 { get; set; }
        public bool state22 { get; set; }

        public bool state23 { get; set; }
        public bool state24 { get; set; }
        public bool state25 { get; set; }
        public bool IsOnline { get; set; }
        public int Manipulatorid { get; set; }

        public Oven_Entity Clone()
        {
            return new Oven_Entity()
            {
                Deviceid = this.Deviceid,
                Station = this.Station,
                PreStation = this.PreStation,
                BackStation = this.BackStation,
                IsEnable=this.IsEnable,
                Remark=this.Remark
            };
       }
    }
}
